package com.css.zfzx.fwsjcj.modules.structure.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fwsjcj.modules.analysis.vo.AnalysisQueryVo;
import com.css.zfzx.fwsjcj.modules.structure.entity.FwBrickStructureEntity;
import com.css.zfzx.fwsjcj.modules.structure.entity.FwBrickwoodStructureEntity;
import com.css.zfzx.fwsjcj.modules.structure.vo.StructureQueryVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @Title: FwBrickStructureService
 * @Description: 砖木结构
 * @date 2020/6/3 10:08
 */
public interface FwBrickwoodStructureService {
    /**
     * 新增子表和主表
     *
     * @param fwBrickwoodStructureEntity
     */
    void save(FwBrickwoodStructureEntity fwBrickwoodStructureEntity);

    /**
     * 修改子表和主表
     *
     * @param fwBrickwoodStructureEntity
     */
    void update(FwBrickwoodStructureEntity fwBrickwoodStructureEntity);


    void delete(String id);



    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    FwBrickwoodStructureEntity findById(String id);

    /**
     * 导入
     */
    String exportExcel(String taskName, String taskId, MultipartFile file, HttpServletResponse response);

    void export(List<String> list, HttpServletResponse response);

    long buildingCount(AnalysisQueryVo analysisQueryVo);

    double brickAreaCount(AnalysisQueryVo analysisQueryVo);

    void updateFileId(String formId, String fileId);

    long count(AnalysisQueryVo analysisQueryVo);

    double area(AnalysisQueryVo analysisQueryVo);
}
